<html>
    <head><title>Content Manager</title>
        <script type="text/javascript">  
            function expand(id) {
                var el=document.getElementById(id);
                if (el.style.display!="none"){
                    el.style.display="none";
                }else{
                    el.style.display="block";
                }
            }
        </script>  

    </head>
    <body bgcolor="white">
        <%@include file="tpl_header.jsp"%>
        <table width="100%" border="0">
            <tr>
                <td width="65%">  
                    <%@include file="QuestionMess.jsp"%>
                    
                    <table width="100%" border="0"  valign="top">
                        <tr>
                            <td><a href="#" onClick="expand('PhraseTypeList');"><img src="imgs/expand.jpg" alt="Expand"></a>List of Types 
                            </td> 
                        </tr>
                        <tr>
                            <td> <div id="PhraseTypeList" style="display:block">  
                                   
                                    <% String[] vartypes = db.getVarTypes(0);%>
                                    <% for (var_count = 0; var_count < vartypes.length && vartypes[var_count]!=null; var_count++) {   %>
                                        <%=vartypes[var_count] %> <br>
                                            <% String[] varsubtypes = db.getVarTypes(db.TypNamNum(vartypes[var_count]));%>
                                            <% for (int var_count2 = 0; var_count2 < varsubtypes.length && varsubtypes[var_count2]!=null; var_count2++) {   %>
                                               <form name="Typeform" action="" method=post> >>><%=varsubtypes[var_count2] %> <input name="typenum" type="hidden" value=<%=db.TypNamNum(varsubtypes[var_count2]) %>><input name="submit" type=submit value="Delete Type"></form>
                                                 
                                             <%  }%>  
                                             <%  }%>  <p>
                                        
                                         <form name="Substitutionform" action="" method=post>
                                        <input type=text name=phs size="10" maxlength="20" value="e.g. New Objects" onFocus="if(this.value.toString().substr(0,4)=='e.g.')this.value='';"> 
                                        <select  name="type1" >
                                            <option value="0">-Main Type-</option>
                                            <% for (int i = 0; i < rs.length && rs[i] != null; i++) {%>
                                            <option ><%=rs[i]%></option>
                                            <% }%>
                                        </select>
                                        <input name="submit" type=submit value="Add New Type">  <p>
                                    </form>
                                        <p>
                                              <%// for (var_count = 0; var_count < 10; var_count++) {%>       
                                    <%//=db.getRandomName(2,3) %> <p>
                                        <%//  }%>  
                                </div></td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
        <table>
            <tr>            
                <%if (!n.getHint().equals("no hint")) {%>
            <font color="red"><%=n.getHint()%></font><br>
            <%}%>
            </tr>
            <%@include file="tpl_footer.jsp"%>
    </body>
</html>